package com.training;


public class Test {

	
	public static void main(String[] args) {
		
		
		Mammals mammals = new Cat();
		
		System.out.println(mammals.makeSound());
		System.out.println(mammals.walk());
		mammals = new Dog();
		
		System.out.println(mammals.makeSound());
		
		System.out.println(mammals.walk());
	}
}
